/* 
 * Curridabat Ciudad Dulce - Prototype Styles
 * Based on Brand Book 2023
 */

@import url('https://fonts.googleapis.com/css2?family=Biryani:wght@300;400;600;700;800;900&family=Verdana&display=swap');

:root {
    /* Paleta Primaria */
    --naranja-mariola: #C45F00;
    --gris-urbano: #425563;

    /* Paleta Secundaria */
    --rojo-amapola: #E0004D;
    --rojo-higueron: #A6093D;
    --azul-poro: #00A3E0;
    --azul-heliconius: #0076A8;
    --verde-cedro: #6CC24A;
    --verde-guayaba: #48A548;
    --naranja-copey: #C03D00;

    /* Neutrals & UI */
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --light-gray: #E9ECEF;
    --text-dark: #2C3E50;
    --text-light: #F8F9FA;
    --success: #6CC24A;
    --danger: #E0004D;
    --warning: #FFC107;

    /* Spacing & Borders */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(66, 85, 99, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Verdana', sans-serif;
    font-size: 16px;
    background-color: var(--off-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Biryani', sans-serif;
    font-weight: 800;
    color: var(--gris-urbano);
}

/* ===== TEXTOS ===== */
.brand-text {
    color: #B85900;
}

.brand-text:hover {
    text-decoration: underline;
}

/* --- Layout --- */
.app-container {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 2rem;
    transition: margin-left 0.3s ease;
}

/* --- Login Page Specifics --- */
.login-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.login-image {
    flex: 1.2;
    background: linear-gradient(135deg, #C45F00, #C03D00);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Abstract Hexagon Pattern for Background */
.hex-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: slide 60s linear infinite;
}

.login-form-wrapper {
    flex: 0.8;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
}

/* --- Components --- */

/* ===== BOTONES ===== */
.btn-primary {
    background-color: #B05400 !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 0.9rem !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    color: #FFFFFF !important;
}

.btn-primary:hover {
    background-color: #8F4400 !important;
}

.btn-secondary {
    background-color: var(--gris-urbano);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #2C3E50;
}

/* Inputs */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gris-urbano);
}

.form-control {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    border-radius: 10px !important;
    border: 1px solid #ddd !important;
    font-size: 1rem !important;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #C45F00 !important;
    box-shadow: 0 0 0 2px rgba(196,95,0,0.2) !important;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 1rem;
}

/* Logo CSS Construction */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.isotipo {
    width: 60px;
    height: 60px;
    background-color: #C45F00;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.isotipo::after {
    content: '';
    width: 45px;
    height: 45px;
    background: radial-gradient(circle at 30% 30%, transparent 40%, var(--white) 41%, var(--white) 50%, transparent 51%);
    border-radius: 50%;
    opacity: 0.5;
}

.logotipo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logotipo-main {
    font-family: 'Biryani', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--gris-urbano);
}

.logotipo-sub {
    font-family: 'Biryani', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--gris-urbano);
    text-transform: uppercase;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.text-xs {
    font-size: 0.8rem;
}

/* WCAG 2.1 AA fix: #777 → #5A5A5A (ratio 7.0:1) */
.color-gray {
    color: #5a5a5a;
}

.w-100 {
    width: 100%;
}

.flex-column {
    flex-direction: column;
}

.d-none {
    display: none;
}

/* Dashboard Sidebar */
.sidebar {
    width: 260px;
    background: var(--gris-urbano);
    color: var(--white);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
}

.sidebar .logo-container .logotipo-main,
.sidebar .logo-container .logotipo-sub {
    color: var(--white);
}

.nav-links {
    list-style: none;
    margin-top: 3rem;
}

.nav-item {
    margin-bottom: 0.5rem;
}

/* WCAG 2.1 AA fix: #cbd5e0 → #5E7080 (ratio 4.6:1) */
.nav-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: #5e7080;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #C45F00;
    padding-left: 1.5rem;
}

.nav-icon {
    margin-right: 1rem;
    width: 24px;
    text-align: center;
}

/* Animations */
@keyframes slide {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 100% 100%;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Dashboard Specifics --- */
.dashboard-header {
    background-color: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 100;
}

.header-left {
    font-family: 'Biryani', sans-serif;
    color: #5a5a5a;
    font-size: 1.1rem;
    font-weight: 400;
}

.header-center {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-separator {
    width: 1px;
    height: 40px;
    background-color: #ccc;
}

.header-title-group {
    display: flex;
    flex-direction: column;
}

.header-system-title {
    font-family: 'Verdana', sans-serif;
    font-weight: 700;
    color: var(--gris-urbano);
    font-size: 1.1rem;
}

.header-system-subtitle {
    font-family: 'Verdana', sans-serif;
    color: #C45F00;
    font-size: 1rem;
}

/* User Button */
.btn-user {
    background-color: #3b7ddd;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
}

.btn-user:hover {
    background-color: #2e62b0;
}

/* Dashboard Navigation */
.dashboard-nav-container {
    background-color: transparent;
    padding: 1.5rem 0;
    display: flex;
    justify-content: center;
}

.dashboard-nav {
    display: flex;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 0.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 5px 10px rgba(0, 0, 0, 0.01);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.dash-nav-link {
    text-decoration: none;
    /* WCAG 2.1 AA fix: #6c757d mantiene ratio 4.54:1 */
    color: #6c757d;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.dash-nav-link:hover {
    color: #C45F00;
    background-color: #fff4ec;
    transform: translateY(-1px);
}

.dash-nav-link.active {
    background: linear-gradient(135deg, #C45F00 0%, #A35000 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(196, 95, 0, 0.3);
}

.dash-nav-link.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(196, 95, 0, 0.4);
}

.dash-nav-link i {
    font-size: 1rem;
}

/* Watermark */
.header-watermark {
    position: absolute;
    right: 20%;
    top: 0;
    height: 100%;
    width: 200px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='%23e9ecef'%3E%3Cpath d='M50 0C22.4 0 0 22.4 0 50s22.4 50 50 50 50-22.4 50-50S77.6 0 50 0zm0 90c-22.1 0-40-17.9-40-40S27.9 10 50 10s40 17.9 40 40-17.9 40-40 40z'/%3E%3C/svg%3E");
    opacity: 0.3;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

/* --- Tramites Page Specifics --- */
.page-title {
    font-family: 'Biryani', sans-serif;
    font-weight: 800;
    color: var(--gris-urbano);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1rem;
}

.page-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 4px;
    background: #C45F00;
    border-radius: 4px;
}

/* Modern Filters Section */
.filters-container {
    background-color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.filters-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    color: var(--gris-urbano);
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 1rem;
}

.filters-header i {
    color: #C45F00;
    font-size: 1.4rem;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

/* WCAG 2.1 AA fix: #8898aa → #5E6E80 (ratio 4.6:1) */
.filter-label {
    font-size: 0.8rem;
    color: #5e6e80;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-input {
    padding: 0.75rem 1rem;
    border: 1px solid #e9ecef;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: #f8f9fe;
    transition: all 0.2s;
}

.filter-input:focus {
    background-color: #fff;
    border-color: #C45F00;
    box-shadow: 0 0 0 3px rgba(196, 95, 0, 0.1);
    outline: none;
}

.filters-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-search {
    background: linear-gradient(135deg, #C45F00, #C03D00);
    color: white;
    padding: 0.75rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(196, 95, 0, 0.3);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 95, 0, 0.4);
}

.btn-clear {
    background-color: #f6f9fc;
    color: #5e6e80;
    padding: 0.75rem 2.5rem;
    border: 1px solid transparent;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-clear:hover {
    background-color: #e9ecef;
    color: var(--text-dark);
}

/* Modern Results Table */
.results-container {
    background-color: transparent;
    border: none;
    box-shadow: none;
    margin-bottom: 3rem;
    overflow: visible;
}

.table-header-title {
    display: none;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    font-size: 0.9rem;
}

/* WCAG 2.1 AA fix: #8898aa → #5E6E80 */
.table thead th {
    background-color: transparent;
    border: none;
    color: #5e6e80;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 0 1.5rem;
}

.table tbody tr {
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    border-radius: 8px;
}

.table tbody tr:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.table td {
    padding: 1.25rem 1.5rem;
    border: none;
    background-color: var(--white);
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
}

.table td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.table td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.table tbody tr:nth-of-type(odd) {
    background-color: var(--white);
}

/* Badges */
.badge {
    padding: 0.35em 0.8em;
    font-size: 0.75em;
    font-weight: 700;
    border-radius: 50px;
    letter-spacing: 0.5px;
    display: inline-block;
}

.badge-success {
    background-color: rgba(45, 206, 137, 0.1);
    color: #2dce89;
}

.badge-warning {
    background-color: rgba(251, 99, 64, 0.1);
    color: #fb6340;
}

/* WCAG 2.1 AA fix: #8898aa → #5E6E80 */
.text-muted {
    color: #5e6e80 !important;
}

.font-weight-bold {
    font-weight: 600 !important;
}

.link-details {
    color: #C45F00;
    font-weight: 700;
    position: relative;
    padding-bottom: 2px;
}

.link-details::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #C45F00;
    transition: width 0.3s;
}

.link-details:hover::after {
    width: 100%;
}

.btn-resend {
    background-color: #fff;
    color: var(--azul-poro);
    border: 1px solid var(--azul-poro);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-resend:hover {
    background-color: var(--azul-poro);
    color: #fff;
}

/* Pagination */
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.d-none {
    display: none !important;
}

.details-row td {
    padding: 0 !important;
    border: none !important;
}

.details-content {
    background-color: #f8f9fa;
    padding: 1.5rem;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.05);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border: 1px solid #e9ecef;
    border-top: none;
    margin-top: -5px;
    position: relative;
    z-index: 9;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

/* WCAG 2.1 AA fix: #8898aa → #5E6E80 */
.detail-item strong {
    color: #5e6e80;
    font-size: 0.8rem;
    font-weight: 600;
}

.detail-item span {
    color: var(--gris-urbano);
    font-size: 0.9rem;
    font-weight: 500;
}

.link-download {
    color: #C45F00;
    font-weight: 600;
    text-decoration: none;
}

.link-download:hover {
    text-decoration: underline;
}

.row-expanded td:first-child,
.row-expanded td:last-child {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #e9ecef;
    background-color: #fff;
    /* WCAG 2.1 AA fix: #8898aa → #5E6E80 */
    color: #5e6e80;
    font-weight: 600;
    transition: all 0.2s;
}

.page-item.active .page-link {
    background-color: #C45F00;
    border-color: #C45F00;
    color: white;
    box-shadow: 0 4px 10px rgba(196, 95, 0, 0.3);
}

.page-link:hover:not(.active) {
    background-color: #f6f9fc;
    color: var(--gris-urbano);
}

/* Back Button */
.btn-back {
    background-color: #337ab7;
    color: white;
    padding: 0.5rem 2rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Estado de Cuenta Page Specifics --- */
.tabs-container {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 0;
    gap: 1rem;
    padding-bottom: 1px;
}

.tab-button {
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    font-weight: 700;
    /* WCAG 2.1 AA fix: #8898aa → #5E6E80 */
    color: #5e6e80;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    font-family: 'Verdana', sans-serif;
    font-size: 0.95rem;
    outline: none;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #C45F00, #C03D00);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.tab-button:hover {
    color: var(--gris-urbano);
}

.tab-button.active {
    color: #C45F00;
    background: transparent;
}

.tab-button.active::after {
    width: 100%;
}

.tab-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    border: none;
    margin-top: -2px;
}

.tab-content .table-bordered {
    border: none;
}

.tab-content .table-bordered th {
    background-color: #f6f9fc !important;
    /* WCAG 2.1 AA fix: #8898aa → #5E6E80 */
    color: #5e6e80;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border: none !important;
    padding: 1rem !important;
}

.tab-content .table-bordered td {
    border-top: 1px solid #e9ecef !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    vertical-align: middle;
    padding: 1rem !important;
    font-size: 0.9rem;
}

.actions-row {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid #e9ecef;
    padding-top: 2rem;
}

.btn-action {
    border: none;
    padding: 0.8rem 2.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 220px;
    text-align: center;
    border-radius: 50px;
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.btn-action:last-child {
    background: linear-gradient(135deg, var(--verde-cedro) 0%, #2dce89 100%);
    color: white;
}

.btn-action:first-child {
    background: white;
    color: var(--azul-poro);
    border: 2px solid var(--azul-poro);
}

.btn-action:first-child:hover {
    background-color: #f4fcfc;
}

.btn-disabled-look {
    opacity: 0.6;
    cursor: not-allowed !important;
    background: #e9ecef !important;
    color: #5e6e80 !important;
    border: none !important;
    box-shadow: none !important;
}

/* --- Tramites Disponibles (Accordion) --- */
.accordion-container {
    background: transparent;
    border-radius: 12px;
    box-shadow: none;
    overflow: visible;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    border: none;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.accordion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.06);
}

.accordion-header {
    width: 100%;
    background: white;
    color: var(--gris-urbano);
    padding: 1.2rem 1.5rem;
    text-align: left;
    border: none;
    outline: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Biryani', sans-serif;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.accordion-header .header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-icon {
    color: #d4956e;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    transition: color 0.3s;
}

.accordion-header:hover {
    background-color: #fff4ec;
    border-left-color: #C45F00;
}

.accordion-header:hover .category-icon {
    color: #C45F00;
}

.accordion-header.active {
    background-color: #fff4ec;
    border-left-color: #C45F00;
}

.accordion-header.active .category-icon {
    color: #C45F00;
}

/* WCAG 2.1 AA fix: #cbd5e0 → #5E7080 */
.toggle-icon {
    color: #5e7080;
    transition: transform 0.3s ease, color 0.3s;
}

.accordion-header:hover .toggle-icon {
    color: #C45F00;
}

.accordion-header.active .toggle-icon {
    transform: rotate(90deg);
    color: #C45F00;
}

.accordion-content {
    background-color: #f8f9fa;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content.open {
    border-top: 1px solid #e9ecef;
}

.tramites-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tramites-list li {
    padding: 0.8rem 2rem;
    color: var(--gris-urbano);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
    font-weight: 500;
}

.tramites-list li:last-child {
    border-bottom: none;
}

.tramites-list li:hover {
    background-color: white;
    color: #C45F00;
    padding-left: 2.5rem;
}

/* WCAG 2.1 AA fix: #adb5bd → #5E6E80 */
.tramites-list li i {
    color: #5e6e80;
    font-size: 0.8rem;
}

.tramites-list li:hover i {
    color: #C45F00;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: background-color 0.2s;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background-color: var(--off-white);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--gris-urbano);
}

.dropdown-item.text-danger {
    color: var(--danger);
}

.dropdown-item.text-danger:hover {
    background-color: #fff5f5;
}

.dropdown-item.text-danger i {
    color: var(--danger);
}

/* ===== REGISTRO WRAPPER ===== */
.registro-wrapper {
    justify-content: flex-start !important;
    overflow-y: auto !important;
    max-height: 100vh;
    padding: 2.5rem 4rem 3rem 4rem !important;
}

.tipo-cedula-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fafafa;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #425563;
    cursor: pointer;
    margin: 0 !important;
}

textarea.form-control,
.ui-inputtextarea.form-control {
    width: 100% !important;
    resize: vertical;
    min-height: 70px;
}
